<#assign pageName="流程审批分组详情">
<#function getUserName userId>
    <#if userList?has_content>
        <#list userList as user>
            <#if user.userid?string==userId?string>
                <#return user.uname>
            </#if>
        </#list>
    </#if>
    <#return "">
</#function>
<#function getDepName depid>
    <#if depList?has_content>
        <#list depList as dep>
            <#if dep.dep_id?string==depid?string>
                <#return dep.dep_name>
            </#if>
        </#list>
    </#if>
    <#return "">
</#function>
<@override name="page-content">
    <div class="layui-tab layui-tab-horizontal layui-tab-brief">
        <ul class="layui-tab-title">
          <li class="layui-this">分组信息</li>
          <li>审批人员信息</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                 <@ctrl.LabelText path="wfGroup.name" labelText="分组名称"/>
		         <@ctrl.LabelText path="wfGroup.code" labelText="分组编号"/>
		         <@ctrl.LabelText path="wfGroup.status" labelText="启用状态"/>
		         <@ctrl.LabelText path="wfGroup.content" labelText="分组描述"/>
            </div>
            <div class="layui-tab-item">
                <table class="layui-table">
                    <thead>
                        <tr>
                            <th class="align-center" width="50px" nowrap="nowrap">序号</th>
                            <th class="align-center" nowrap="nowrap">用户名称</th>
                            <th class="align-center" nowrap="nowrap">机构名称</th>
                        </tr>
                    </thead>
                    <tbody>
                    <#if userList?has_content>
                    <#list userList as dataItem>
                        <tr>
                            <td class="align-center" width="150px" nowrap="nowrap">
                            	${dataItem.index+1}
                            </td>
                            <td class="align-center" nowrap="nowrap">
                            	${dataItem.userName}
                            </td> 
                            <td class="align-center" nowrap="nowrap">
                            	${dataItem.depName}
                            </td> 
                        </tr>
                    </#list>
                    <#else>
                        <tr>
                            <td colspan="6" style="color:red;text-align:center;">暂无审批人员信息</td>
                        </tr>
                    </#if> 
                    </tbody>
                </table>
            </div>
            <@ctrl.FormAction buttons=["back"]  backURL="${contextPath}/workflow/group/manage"/>
        </div>
    </div>
</@override>
<@override name="page-scripts">
    <script type="text/javascript">
	    layui.use('element', function () {
	        var $ = layui.jquery
	        , element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
	    });
    </script>
</@override>
<@extends name="/layout/basepage.html"/> 
